#include "MCL51.h"

void delay(uint16_t x) {
    uint16_t i =0 ;
    for(i=0;i<x;i++){
        ;
    }
}


u8 s[200] ;

void main() {
    P0 = 0;
    u8 idx = 0 ;
    for(int i=0;i<10;++i) {
        s[i] = i;
    }
    while(1) {
        P0 = s[idx++]*3;
        if(idx>=10) {
            idx=0;
        }

        //delay(10);
    }
}